package com.xc.hotelmgr.webapi.modules.ord.service;

import com.xc.hotelmgr.webapi.common.utils.R;
import com.xc.hotelmgr.webapi.modules.ord.entity.DeliGood;
import com.xc.hotelmgr.webapi.modules.ord.entity.OrdOrderEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("order")
public interface OrderFeignService {

    /**
     * 下单
     * @param manuBookRQ
     * @return
     */
    @RequestMapping(value = "webapi/manu/order", method = RequestMethod.POST)
    R manuOrder(@RequestBody OrdOrderEntity manuBookRQ);

    /**
     * 关单/
     * @param deliGood
     * @return
     */
    @RequestMapping(value = "webapi/manu/deligood", method = RequestMethod.POST)
    R manudeligood(@RequestBody DeliGood deliGood);

    // 刷新预定渠道缓存
    @GetMapping("/webapi/ctrip/order/refesh/channel")
    void refesh();

}
